package cn.java86.springcore;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author oldliu
 * @since 1.0
 */
public class SpringTest {
    public static void main(String[] args) {
        //对象工厂
        ApplicationContext context=new ClassPathXmlApplicationContext("spring-config.xml");
        //从工厂中获得对象
        HelloSpring hello = context.getBean("hello", HelloSpring.class);
        hello.say();//???
    }
}
